import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect: "home"
  },
  // 首页
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home/home.vue')
  },
  // 分类
  {
    path: '/fen',
    name: 'fen',
    component: () => import('../views/fen/fen.vue')
  },
  // 分类详情
  {
    path: '/fenxiang',
    name: 'fenxiang',
    component: () => import('../views/fen/fenxiang.vue')
  },
  // 购物车
  {
    path: '/gou',
    name: 'gou',
    component: () => import('../views/gou/gou.vue')
  },
  // 个人
  {
    path: '/ge',
    name: 'ge',
    component: () => import('../views/user/ge.vue')
  },
  // 注册
  {
    path: '/zhu',
    name: 'zhu',
    component: () => import('../views/user/zhu.vue')
  },
  // 登录
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/user/login.vue')
  },
  // 签到
  {
    path: '/qiandao',
    name: 'qiandao',
    component: () => import('../views/qian/qiandao.vue')
  },
  // 礼劵
  {
    path: '/lijuan',
    name: 'lijuan',
    component: () => import('../views/qian/lijuan.vue')
  },
  // 砍价列表
  {
    path: '/kanjia',
    name: 'kanjia',
    component: () => import('../views/kan/kanjia-list.vue')
  },
  // 砍价详情
  {
    path: '/kanxiang',
    name: 'kanxiang',
    component: () => import('../views/kan/kanxiang.vue')
  },

  // 严选专栏
  {
    path: '/zhuanlan',
    name: 'zhuanlan',
    component: () => import('../views/zhuan/zhuanlan.vue')
  },
  // 专栏详情
  {
    path: '/xiang',
    name: 'xiang',
    component: () => import('../views/zhuan/xiang.vue')
  },
  // 人气推荐
  {
    path: '/renqi',
    name: 'renqi',
    component: () => import('../views/ren/renqi.vue')
  },
  // 人气详情
  {
    path: '/renxiang',
    name: 'renxiang',
    component: () => import('../views/ren/renxiang.vue')
  }, {
    path: '/di',
    name: 'di',
    component: () => import('../views/dizhi/di.vue')
  }, {
    path: '/dizhi',
    name: 'dizhi',
    component: () => import('../views/dizhi/dizhi.vue')
  },
]
const router = new VueRouter({
  routes
})
export default router